package com.eightgroups.tces.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 开课信息
 * </p>
 *
 * @author zzc2016.cn
 * @since 2017-11-27
 */
@TableName("course_plan")
public class CoursePlan extends Model<CoursePlan> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 班级id
     */
	@TableField("clazz_id")
	private Integer clazzId;
    /**
     * 课程id
     */
	@TableField("course_id")
	private Integer courseId;
    /**
     * 学期
     */
	private String term;
    /**
     * 教师id
     */
	@TableField("teacher_id")
	private Integer teacherId;
    /**
     * 0 删除 1 正常
     */
	private Integer status;
    /**
     * 创建时间
     */
	@TableField(value = "gmt_create" ,fill = FieldFill.INSERT)
	private Date gmtCreate;
    /**
     * 修改时间
     */
	@TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
	private Date gmtModified;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getClazzId() {
		return clazzId;
	}

	public void setClazzId(Integer clazzId) {
		this.clazzId = clazzId;
	}

	public Integer getCourseId() {
		return courseId;
	}

	public void setCourseId(Integer courseId) {
		this.courseId = courseId;
	}

	public String getTerm() {
		return term;
	}

	public void setTerm(String term) {
		this.term = term;
	}

	public Integer getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(Integer teacherId) {
		this.teacherId = teacherId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CoursePlan{" +
			"id=" + id +
			", clazzId=" + clazzId +
			", courseId=" + courseId +
			", term=" + term +
			", teacherId=" + teacherId +
			", status=" + status +
			", gmtCreate=" + gmtCreate +
			", gmtModified=" + gmtModified +
			"}";
	}
}
